" yaml 下载  pip install pyyaml"

# 导入
import yaml

# 加载配置文件
# f = open('config2.yaml')
with open('config2.yaml') as f:

    # open打开文件，
    data = yaml.load(f.read(),Loader=yaml.FullLoader)
    print(data)